<template>
    <div id="message">
        <van-nav-bar title="客服中心" left-text="返回" left-arrow @click-left="onClickLeft" />
        <div id="message_con">
            <p>
                <span class="message_title">系统消息</span>
                <span class="read_all">全部已读</span>
            </p>
            <ul>
                <li>
                    <div class="message_img">
                        <img src="@/assets/images/message.png" alt="">
                    </div>
                    <div class="message_con">
                        <p class="p1"><span>思念黑芝麻汤圆</span><span class="span2">1分钟前</span></p>
                        <p class="p2">这个尺寸与您很合适</p>
                    </div>
                </li>
                <li>
                    <div class="message_img">
                        <img src="@/assets/images/message.png" alt="">
                    </div>
                    <div class="message_con">
                        <p class="p1"><span>思念黑芝麻汤圆</span><span class="span2">1分钟前</span></p>
                        <p class="p2">这个尺寸与您很合适</p>
                    </div>
                </li>
                <li>
                    <div class="message_img">
                        <img src="@/assets/images/message.png" alt="">
                    </div>
                    <div class="message_con">
                        <p class="p1"><span>思念黑芝麻汤圆</span><span class="span2">1分钟前</span></p>
                        <p class="p2">这个尺寸与您很合适</p>
                    </div>
                </li>
                <li>
                    <div class="message_img">
                        <img src="@/assets/images/message.png" alt="">
                    </div>
                    <div class="message_con">
                        <p class="p1"><span>思念黑芝麻汤圆</span><span class="span2">1分钟前</span></p>
                        <p class="p2">这个尺寸与您很合适</p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
#message {
    width: 100vw;
    height: 100vh;
    background-color: white;

    #message_con {
        width: 100vw;
        height: 90vh;
        background-color: #fafafa;
        padding-top: 15px;

        p {
            display: flex;
            justify-content: space-between;
            padding-left: 10px;
            padding-right: 10px;

            .message_title {
                font-size: 18px;
                font-weight: bold;
            }

            .read_all {
                font-size: 14px;
                color: #4492fe
            }
        }

        li {
            display: flex;
            width: 100%;
            height: 60px;
            padding-top: 10px;
            padding-bottom: 10px;
            justify-content: space-between;

            .message_img {
                width: 60px;
                height: 60px;

                img {
                    width: 70%;
                    height: 70%;
                    margin-left: 15px;
                    margin-top: 20px;
                }
            }

            .message_con {
                width: 78%;
                height: 60px;
                margin-right: 10px;
                line-height: 1em;

                .p1 {
                    font-size: 16px;
                    font-weight: bold;
                    display: flex;
                    justify-content: space-between;

                    .span2 {
                        font-size: 12px;
                        color: #cecece;
                        font-weight: normal;
                    }
                }

                .p2 {
                    font-size: 13px;
                }
            }
        }
    }
}
</style>